/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kmcsoft.goldshop.model.master;

import javax.jdo.annotations.Column;
import javax.jdo.annotations.FetchGroup;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

/**
 *
 * @author kmcsoft02
 */
@PersistenceCapable(detachable = "true", table = "SHOP_Product")
@FetchGroup(name = "detach_ProductGold_Unit", members = {
    @Persistent(name = "unit")})
public class ProductGold extends Product {

    public static final String TYPE_18K = "18K";
    public static final String TYPE_24K = "24K";
    @Persistent
    private String type;
    @Persistent
    @Column(defaultValue="0")
    private double sellingPrice;
    @Persistent
    @Column(defaultValue="0")
    private double buyingPrice;
    @Persistent
    private boolean groupSJC;
    @Persistent
    private boolean readonly;
    
    public double getBuyingPrice() {
        return buyingPrice;
    }

    public void setBuyingPrice(double buyingPrice) {
        this.buyingPrice = buyingPrice;
    }

    public double getSellingPrice() {
        return sellingPrice;
    }

    public void setSellingPrice(double sellingPrice) {
        this.sellingPrice = sellingPrice;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isGroupSJC() {
        return groupSJC;
    }

    public void setGroupSJC(boolean groupSJC) {
        this.groupSJC = groupSJC;
    }

    public boolean isReadonly() {
        return readonly;
    }

    public void setReadonly(boolean readonly) {
        this.readonly = readonly;
    }
    
}
